<%@ page import="com.pb.news.entity.User" %>
<%@ page import="com.pb.news.constants.Constants" %><%--
  Created by IntelliJ IDEA.
  User: Jovi
  Date: 2018/4/11
  Time: 下午3:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    User user = null;
    if (session.getAttribute("guest") == null) {
        response.sendRedirect("enter.jsp");
    } else {
        user = (User) session.getAttribute("guest");
    }
%>
您好：<%=user.getUserName()%><br>
此时在线人数：<%=Constants.ONLINE_USER_COUNT%>
<a href="doOut.jsp">离开</a>
</body>
</html>
